package araxy.blog.service;

import araxy.blog.entity.Article;

import java.nio.file.Path;
import java.text.ParseException;
import java.util.Map;

public interface ArticleService {
    Boolean insertArticle(Article article);
    Boolean updateArticle(Article article);
    public Object uploadArticle(Object obj, Article article) throws ParseException;
    Boolean deleteArticleById(String id);
    Object deleteArticleDataById(String id);
    Article getArticleById(String id);
    Map<String,Object> getAllPagedArticle(Integer page, Integer pageSize);
    Map<String,Object> getPagedArticleInfo(Integer page, Integer pageSize);
    Object uploadArticle(Path path, Object tmp, Article article);
    byte[] getArticleBytesById(String id);
}
